export const ReadProReducer = (prevState = 0, action) => {
    let { type, payload } = action
    switch (type) {
        case "change_readpro":
            let newState = prevState
            newState = payload
            return newState
        default:
            return prevState
    }
}